<!DOCTYPE html>
<html lang="en" ng-app="app" ng-controller="AppController">
<head>
    <meta charset="UTF-8">
    <!--设置视口 当前项目是运行到手机端-->
    <meta name="viewport" content="width=device-width, user-scalable=no,maximum-scale=1.0, minimum-scale=1.0">
    <title ng-bind="title"></title>
    <link rel="stylesheet" href="css/index.css">
</head>
<body>
<!--全网页使用组件化的方式进行开发在angular中组件化就是自定义指令-->
<!--nav组件-->
<navs isBack = "true"></navs>
<div ui-view="home" ng-show="type == 'home'"></div>
<div ui-view="author" ng-show="type == 'author'"></div>
<div ui-view="content" ng-show="type == 'content'"></div>
<div ui-view="my" ng-show="type == 'my'"></div>

<!--底部tabbar-->
<tabbar></tabbar>

</body>
</html>
<!--设置页面默认字体大小-->
<script>
    var font = window.screen.width / 10 + 'px';
    document.getElementsByTagName('html')[0].style.fontSize = font;
</script>
<script src="lib/angular/angular.js"></script>
<script src="lib/angular-ui-router/release/angular-ui-router.js"></script>
<script src="js/index.js"></script>
